<?php
apf_require_controller("Abstract");
apf_require_class("Util_ApioAuth");
apf_require_class("Bll_Jx_Setting");
class Ajax_SetBrantchLeaderController extends AbstractController{
    public function handle_request() {
        $params=APF::get_instance()->get_request()->get_parameters();
        $bll=new Bll_Jx_Setting();
        $users=$bll->get_user_info($params['leaderName']);
        if($users){
        $this->json_encode(1,$users);
        }
        else{
        $this->json_encode(0,"none");
        }
    }

}